import request from '@/utils/request'

// 查询客户公海池列表
export function listClient_pool(query) {
  return request({
    url: '/crm/client_pool/list',
    method: 'get',
    params: query
  })
}
//公海池添加到个人客户
export function addClient(data) {
  return request({
    url: '/crm/client_pool/addmyclient',
    method: 'post',
    data: data
  })
}
//个人客户移交到公海池
export function removeclient(data) {
  return request({
    url: '/crm/client_pool/removeclient',
    method: 'post',
    data: data
  })
}
//查询个人客户
export function mylistClient_pool(query) {
  return request({
    url: '/crm/client_pool/myCrmClilist',
    method: 'get',
    params: query
  })
}
// 查询客户公海池详细
export function getClient_pool(clientId) {
  return request({
    url: '/crm/client_pool/' + clientId,
    method: 'get'
  })
}

// 新增客户公海池
export function addClient_pool(data) {
  return request({
    url: '/crm/client_pool',
    method: 'post',
    data: data
  })
}

// 修改客户公海池
export function updateClient_pool(data) {
  return request({
    url: '/crm/client_pool',
    method: 'put',
    data: data
  })
}

// 删除客户公海池
export function delClient_pool(clientId) {
  return request({
    url: '/crm/client_pool/' + clientId,
    method: 'delete'
  })
}
// 查询【客户详细情况】列表
export function listCondition(query) {
  return request({
    url: '/system/condition/list',
    method: 'get',
    params: query
  })
}

// 查询【客户详细情况】详细
export function getCondition(conditionId) {
  return request({
    url: '/system/condition/' + conditionId,
    method: 'get'
  })
}

// 新增【客户情况】
export function addCondition(data) {
  return request({
    url: '/system/condition',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateCondition(data) {
  return request({
    url: '/system/condition',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delCondition(conditionId) {
  return request({
    url: '/system/condition/' + conditionId,
    method: 'delete'
  })
}
